﻿using System;

namespace Hausaufgabe1
{
    /// <summary>
    /// Klasse für eine einzelne Person.
    /// </summary>
    class Person
    {
        private string vorname;
        /// <summary>
        /// Vorname der Person.
        /// </summary>
        public string Vorname
        {
            get { return this.vorname; }
            set { this.vorname = value; }
        }

        private string nachname;
        /// <summary>
        /// Nachname der Person.
        /// </summary>
        public string Nachname
        {
            get { return this.nachname; }
            set { this.nachname = value; }
        }

        /// <summary>
        /// Alle Personeninformationen.
        /// </summary>
        /// <returns>Zeilenweise Ausgabe aller Informationen der Person.</returns>
        public override string ToString()
        {
            return this.Vorname + " " + this.Nachname;
        }
    }
}